package com.surenpi.jenkins.client.plugin;

import com.surenpi.jenkins.client.BaseModel;
import java.util.List;

public class PluginManager extends BaseModel {
   private List<Plugin> plugins;

   public List<Plugin> getPlugins() {
      return this.plugins;
   }

   public void setPlugins(List<Plugin> plugins) {
      this.plugins = plugins;
   }

   public int hashCode() {
      int prime = 31;
      int result = 1;
      result = 31 * result + (this.plugins == null ? 0 : this.plugins.hashCode());
      return result;
   }

   public boolean equals(Object obj) {
      if (this == obj) {
         return true;
      } else if (obj == null) {
         return false;
      } else if (this.getClass() != obj.getClass()) {
         return false;
      } else {
         PluginManager other = (PluginManager)obj;
         if (this.plugins == null) {
            if (other.plugins != null) {
               return false;
            }
         } else if (!this.plugins.equals(other.plugins)) {
            return false;
         }

         return true;
      }
   }
}
